/* F1 Hub Directory - Ad Styling */

.ad-container {
    width: 100%;
    margin: var(--spacing-lg) 0;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
}

.ad-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--gray-text);
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 1;
}

.ad-placeholder {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.ad-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.ad-mock-banner,
.ad-mock-rectangle,
.ad-mock-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-gray), var(--accent-color));
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--gray-text);
    font-size: 0.9rem;
    text-align: center;
}

/* Ad sizes */
.ad-large {
    height: 250px;
}

.ad-medium {
    height: 150px;
}

.ad-small {
    height: 100px;
}

.ad-sidebar {
    height: 600px;
}

/* Responsive ads */
@media (max-width: 768px) {
    .ad-sidebar {
        height: 250px;
    }
}

/* Ad positioning */
.ad-header {
    margin-top: 0;
}

.ad-footer {
    margin-bottom: 0;
}

.ad-in-content {
    margin: var(--spacing-xl) 0;
}

/* Affiliate link styling */
.affiliate-link {
    position: relative;
    display: inline-block;
}

.affiliate-link::after {
    content: "*";
    font-size: 0.8em;
    vertical-align: super;
    color: var(--primary-red);
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Newsletter subscription - monetization opportunity */
.newsletter-form {
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: var(--spacing-md);
    padding-right: 120px;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light-text);
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background-color: var(--primary-red);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0 var(--spacing-md);
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-red);
}
